package com.kmx.demo.utils;

import java.util.HashMap;

public interface HttpConstants {

	public static final String CREATED = "Created";
	public static final String BAD_REQUEST = "Bad Request";
	public static final String NOT_FOUND = "Not Found";
	public static final String OK = "OK";
	public static final String CONFLICT = "Conflict";
	public static final String ACCEPTED = "Accepted";
	public static final String UNAUTHORIZED = "Unauthorized";
	
	public static final String CHARSET = "UTF-8";
	
	public static final HashMap<String, String> APPLICATION_JSON = new HashMap<String, String>() {
		private static final long serialVersionUID = 931338525980929781L;
		{ put("Content-Type", "application/json");  }
	};
	
	
	/**定义4个常量,分别对应compare方法返回的结果的key*/
	public static final String IS_SUCCESS = "status";   
	public static final String ERROR_MESSAGE = "error";   
	public static final String WARNING = "warning";   
	public static final String ERROR_ITEMS = "items"; 
	
	/**定义常量,分别对应compare方法的expectedResult参数的key*/
	public static final String STATUS_CODE = "code";   
	public static final String EXPECT_HEADERS = "headers";   // 储存的值应该是Map<String,String> 结构
	public static final String PAYLOAD = "body";   
	
	/**存放比较结果的key*/
	public static final String EXPECT = "expect";   
	public static final String ACTUAL = "actual";   
}
